import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/api/halo-dashboard/v1/login",
    method: "post",
    data
  });
}

export function logout() {
  return Promise.resolve();
  // return request({
  //   url: '/api/logout',
  //   method: 'post'
  // })
}
// 获取验证码
export function getCode(data) {
  return request({
    url: "/api/merchant-dashboard/v1/phone/code",
    method: "post",
    data
  });
}
